package cn.edu.sjtu.se.dslab.service;

import java.util.List;

import cn.edu.sjtu.se.dslab.action.bean.PageBean;
import cn.edu.sjtu.se.dslab.component.design.DesignPattern;
import cn.edu.sjtu.se.dslab.component.design.DesignPatternType;
import cn.edu.sjtu.se.dslab.exception.DBException;

public interface IDesignPatternService {
	public boolean addDesignPattern(DesignPattern designPattern);

	public DesignPattern updateDesignPattern(DesignPattern designPattern);

	public DesignPattern getDesignPatternById(long id);

	public DesignPattern getDesignPatternByName(String name);

	public PageBean getPageBean(int pageNum) throws DBException;
	
	public List<DesignPattern> getDesignPatternList();

	public DesignPattern getDesignPatternByUri(String uri);
	
	public DesignPattern getDesignPatternByType(DesignPatternType dpType);
}
